import request from "@/utils/request";

export function getBuildingList(query){
    return request<ResponseGlobal>('get','/robot/building/page',query);
}

export function addBuilding(data){
    return request<ResponseGlobal>('post','/robot/building/save',data);
}

export function updateBuilding(id,data){
    return request<ResponseGlobal>('post',`/robot/building/update/${id}`,data);
}

export function daleteBuilding(id){
    return request<ResponseGlobal>('delete',`/robot/building/delete/${id}`);
}